package com.ruoyi.system.service;

import com.ruoyi.system.entity.OneElectronFenceStatus;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 一号库区电子围栏状态(OneElectronFenceStatus)表服务接口
 *
 * @author makejava
 * @since 2023-10-25 15:54:39
 */
public interface OneElectronFenceStatusService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    OneElectronFenceStatus queryById(Integer id);

    /**
     * 分页查询
     *
     * @param oneElectronFenceStatus 筛选条件
     * @param pageRequest            分页对象
     * @return 查询结果
     */
    Page<OneElectronFenceStatus> queryByPage(OneElectronFenceStatus oneElectronFenceStatus, PageRequest pageRequest);

    List<OneElectronFenceStatus> queryAll(OneElectronFenceStatus oneElectronFenceStatus);

    /**
     * 新增数据
     *
     * @param oneElectronFenceStatus 实例对象
     * @return 实例对象
     */
    OneElectronFenceStatus insert(OneElectronFenceStatus oneElectronFenceStatus);

    /**
     * 修改数据
     *
     * @param oneElectronFenceStatus 实例对象
     * @return 实例对象
     */
    OneElectronFenceStatus update(OneElectronFenceStatus oneElectronFenceStatus);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    void delete();

}
